/**
 * Copyright (c) 2019 xstgongyi.org
 * All rights reserved.
 */
package org.xstgongyi.eduaid.service;

import java.util.List;

import org.xstgongyi.eduaid.dataobject.SemesterDO;

/**
 * @author oldcrane<br/>
 * @created 2019-04-02
 */
public interface SemesterService {

	void insert(String name, Integer schoolYearId, Boolean active);

	void update(Integer id, String name, Integer schoolYearId, Boolean active);

	List<SemesterDO> listAll();

	List<SemesterDO> listByStatus(Boolean active);

	SemesterDO getById(Integer id);

}
